find non repeating elements in an array in C